import request from '@/utils/request'

// 查询工作工单列表
export function listNewWorkOrder(query) {
  return request({
    url: '/service/newWorkOrder/list',
    method: 'get',
    params: query
  })
}

// 查询工作工单详细
export function getNewWorkOrder(id) {
  return request({
    url: '/service/newWorkOrder/' + id,
    method: 'get'
  })
}

// 新增工作工单
export function addNewWorkOrder(data) {
  return request({
    url: '/service/newWorkOrder',
    method: 'post',
    data: data
  })
}

// 修改工作工单
export function updateNewWorkOrder(data) {
  return request({
    url: '/service/newWorkOrder',
    method: 'put',
    data: data
  })
}

// 删除工作工单
export function delNewWorkOrder(id) {
  return request({
    url: '/service/newWorkOrder/' + id,
    method: 'delete'
  })
}
